package com.zishi.mapper;

import com.zishi.model.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.websocket.server.PathParam;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author TP
 * @since 2022-05-05 08:53:41
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据openId获取用户主键id
     */
    Integer getUserIdByOpenId(@Param("openid") String openid);
}

